import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('showActive')
export class showActive extends Component {
    //off
    @property(Node)
    off: Node = null;

    //on
    @property(Node)
    on: Node = null;
    
    // vertical
    @property(Node)
    vertical: Node = null;

    hideList(){
        this.off.active = false;
        this.on.active = true;
        this.vertical.active = false;
    }

    showList(){
        this.off.active = true;
        this.on.active = false;
        this.vertical.active = true;
    }
}


